import { defineVitestConfig } from '../test-config';

export default defineVitestConfig(
	{
		title: 'Sidebar Test',
		sidebar: [
			// A single link item labelled “Home”.
			{ label: 'Home', link: '/' },
			// A group labelled “Start Here” containing two links.
			{
				label: 'Start Here',
				items: [
					{
						label: 'Introduction',
						link: '/intro',
						badge: {
							variant: 'success',
							text: 'New',
						},
					},
					{ label: 'Next Steps', link: '/next-steps', badge: 'Deprecated' },
					{
						label: 'Showcase',
						link: '/showcase',
						attrs: { class: 'showcase-link', target: '_blank' },
					},
					{
						label: 'Astro',
						link: 'https://astro.build/',
					},
				],
			},
			// A group linking to all pages in the reference directory.
			{
				label: 'Reference',
				badge: 'Experimental',
				autogenerate: { directory: 'reference' },
			},
			// A group linking to all pages in the api/v1 directory.
			{
				label: 'API v1',
				autogenerate: { directory: '/api/v1/' },
			},
		],
	},
	{
		build: {
			format: 'file',
		},
	}
);
